import Vue from "vue";
import Router from "vue-router";
import Home from "../pages/home";
import Ad from "../pages/ad";
import Media from "../pages/media";
import Callme from "../pages/callme";
import Platform from "../pages/platform";

import NotFound from "../components/404";

Vue.use(Router);

export default new Router({
    mode: "history",
    linkActiveClass: "b-link-active",
    routes: [
        {
            path: "/",
            name: "home",
            component: Home
        },
        {
            path: "/ad",
            name: "ad",
            component: Ad
        },
        {
            path: "/media",
            name: "media",
            component: Media
        },
        {
            path: "/callme",
            name: "callme",
            component: Callme
        },
        {
            path: "/platform",
            name: "platform",
            component: Platform
        },
        {
            path: "*",
            component: NotFound
        }
    ]
});
